package com.partner.mapper.sysright;

import java.util.List;
import java.util.Map;

import com.partner.bean.sysright.TRelationship;
import com.partner.bean.sysright.TSysright;

public interface TRelationshipMapper {
    int deleteByPrimaryKey(Integer id);
    
    int deleteByRoleId(Integer id);

    int insert(TRelationship record);

    int insertSelective(TRelationship record);

    TRelationship selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TRelationship record);

    int updateByPrimaryKey(TRelationship record);
    
    List<TSysright> selectByRoleId(int roleid);
    
    List<TRelationship> selectByRoleIdAndRightId(Map<String,Integer> map);
}